import '@/utils/rem';
import { registerMicroApps, start } from 'qiankun';

// 注册子应用
registerMicroApps(
  [
    {
      name: 'insurance',
      entry: '//localhost:8081',
      container: '#root',
      activeRule: '/vue-app',
    },
  ],
  {
    beforeLoad: async (app) => console.log('主应用初始化', app.name),
    beforeMount: [async (app) => console.log('主应用刷新', app.name)],
    beforeUnmount: async (app) => console.log('主应用卸载', app.name),
  },
);

// 启动
start();
